<template>
  <div class="dashboard-container">
    <el-row :gutter="20">
      <el-col :span="6">
        <el-card shadow="hover">
          <template #header>
            <div class="card-header">
              <span>今日考勤</span>
            </div>
          </template>
          <div class="card-content">
            <el-statistic title="已打卡" :value="0">
              <template #suffix>
                <span>人</span>
              </template>
            </el-statistic>
          </div>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card shadow="hover">
          <template #header>
            <div class="card-header">
              <span>请假统计</span>
            </div>
          </template>
          <div class="card-content">
            <el-statistic title="今日请假" :value="0">
              <template #suffix>
                <span>人</span>
              </template>
            </el-statistic>
          </div>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card shadow="hover">
          <template #header>
            <div class="card-header">
              <span>加班统计</span>
            </div>
          </template>
          <div class="card-content">
            <el-statistic title="本月加班" :value="0">
              <template #suffix>
                <span>小时</span>
              </template>
            </el-statistic>
          </div>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card shadow="hover">
          <template #header>
            <div class="card-header">
              <span>异常考勤</span>
            </div>
          </template>
          <div class="card-content">
            <el-statistic title="本月异常" :value="0">
              <template #suffix>
                <span>次</span>
              </template>
            </el-statistic>
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script setup>
// TODO: 添加仪表盘数据获取逻辑
</script>

<style scoped>
.dashboard-container {
  padding: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-content {
  text-align: center;
}

.el-card {
  margin-bottom: 20px;
}
</style> 